#
#	Makefile for dcmsr/libsrc
#


@SET_MAKE@

SHELL = /bin/sh
VPATH = @srcdir@:@top_srcdir@/include:@top_srcdir@/@configdir@/include
srcdir = @srcdir@
top_srcdir = @top_srcdir@
configdir = @top_srcdir@/@configdir@

include $(configdir)/@common_makefile@

ofstddir = $(top_srcdir)/../ofstd
dcmdatadir = $(top_srcdir)/../dcmdata

LOCALINCLUDES = -I$(ofstddir)/include -I$(dcmdatadir)/include
LOCALDEFS =

objs = dsrdoc.o dsrtree.o dsrtncsr.o dsrdoctn.o dsrdoctr.o \
	dsrimgfr.o dsrscogr.o dsrtcodt.o dsrtcosp.o dsrtcoto.o dsrwavch.o \
	dsrcitem.o dsrtypes.o dsrstrvl.o dsrcodvl.o dsrnumvl.o dsrscovl.o \
	dsrtcovl.o dsrcomvl.o dsrimgvl.o dsrwavvl.o dsrtextn.o dsrcodtn.o \
	dsrnumtn.o dsrdtitn.o dsrdattn.o dsrtimtn.o dsruidtn.o dsrpnmtn.o \
	dsrscotn.o dsrtcotn.o dsrcomtn.o dsrimgtn.o dsrwavtn.o dsrcontn.o \
	dsrreftn.o dsrsoprf.o dsrcsidl.o dsrxmlc.o  dsrxmld.o  dsriodcc.o \
	dsrbascc.o dsrenhcc.o dsrcomcc.o dsrkeycc.o dsrmamcc.o dsrchecc.o \
	dsrprocc.o dsrxrdcc.o
library = libdcmsr.$(LIBEXT)


all: $(library)

install: all
	$(configdir)/mkinstalldirs $(libdir)
	$(INSTALL_DATA) $(library) $(libdir)/$(library)

$(library): $(objs)
	$(AR) $(ARFLAGS) $@ $(objs)
	$(RANLIB) $@


clean:
	rm -f $(objs) $(library) $(TRASH)

distclean:
	rm -f $(objs) $(library) $(DISTTRASH)


dependencies:
	$(CXX) -MM $(defines) $(includes) $(CPPFLAGS) $(CXXFLAGS) *.cc  > $(DEP)

include $(DEP)
